﻿@model IEnumerable<EasyErp.Domain.OperationInfo>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>

@(Html.Telerik().Grid(Model)
    .Name("OperationTable")
        .Columns(column =>
            {
                column.Template(c => Html.ActionLink("Edit", "Edit", new { id = c.OperationId }, new { @class = "edit" }) + " | " + Html.ActionLink("Delete", "Delete", new { id = c.OperationId }, new { @class = "delete" }))
                    .Title("Action").Width(200);
                column.Bound(c => c.SpecNo);
                column.Bound(c => c.SpecDescription);
                column.Bound(c => c.OperationDescription);
                column.Bound(c => c.Caption);
                column.Bound(c => c.Sequence);
                column.Bound(c => c.Route);
                column.Bound(c => c.PayMethod);
                column.Bound(c => c.MaxPaid);
            }
        )
        .Groupable()
        .Pageable()
        .Filterable()
)
    
